﻿/*
 * 2023/2/24
 * 会员信息表实体
 *  
 * **/
using Max.PH5_2008A.ShoppingCode.Domain.Shared;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Max.PH5_2008A.ShoppingCode.Domain
{
    [Table("tb_memeber_info")]
    public class MemeberInfoEntity
    {
        public Guid Id { get; set; }
        public string? NickName { get; set; } //用于在登录后显示的账户昵称

        //[Required(ErrorMessage ="手机号必填")]
        public string? Phone { get; set; }  //用手机号做为登录账号


        //[Required(ErrorMessage = "密码必填")]
        public string Password { get; set; } //密码，需要进行加密处理
        public int? Age { get; set; } //年龄
        public string? City { get; set; }
        public bool? Sex { get; set; }
        public VipType VipType { get; set; } = VipType.青铜;  //vip类型

        /*
         * 审计字段
         * 用来追溯数据的来源
         * **/
        public string? Statue { get; set; } = "0"; //状态：0正常，1禁用
        public DateTime? CreatedDate { get; set; } = System.DateTime.Now;
        public string? CreatedBy { get; set; }
        public DateTime? UpdateDate { get; set; }
        public string? UpdateBy { get; set; }

    }
}